package game.assist.diablo3;

import game.assist.diablo3.db.DiabloDatabaseHelper;
import android.app.Application;
import android.content.Context;

import com.j256.ormlite.android.apptools.OrmLiteBaseActivity;

public class DiabloApplication extends Application {

	private final static String TAG = DiabloApplication.class.getSimpleName();

	private static DiabloApplication mDiabloApplication;
	private static OrmLiteBaseActivity<DiabloDatabaseHelper> ormLiteBaseActivity;
	
	public static Context appContext;;

	@Override
	public void onCreate() {
		super.onCreate();
		mDiabloApplication = this;
		appContext = getApplicationContext();
	}

	public static void setORMLiteBaseActivity(OrmLiteBaseActivity<DiabloDatabaseHelper> ormLiteBase) {
		ormLiteBaseActivity = ormLiteBase;
	}

	public static OrmLiteBaseActivity<DiabloDatabaseHelper> gettORMLiteBaseActivity() {
		return ormLiteBaseActivity;
	}

	public static DiabloApplication getDiabloApplication() {
		return mDiabloApplication;
	}
}
